﻿@model IEnumerable<MvcApplication4.Models.tb_Laboratorio>

@{
    ViewBag.Title = "Laboratórios Cadastrados";
}

<h2>@ViewBag.Title</h2>

<p>
    @Html.ActionLink("Cadastrar Laboratório", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.Label("ID")
        </th>
        <th>
            @Html.Label("Nome Laboratório")
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ID_Laboratorio)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Nome_Laboratorio)
        </td>
        <td>
            @Html.ActionLink("Editar", "Edit", new {  id=item.ID_Laboratorio }) |
            @Html.ActionLink("Deletar", "Delete", new {  id=item.ID_Laboratorio })
        </td>
    </tr>
}

</table>
